<?php
$banners    = $html->ListBanner();
?>
<div class="banner_slide">
    
    <div id="banner_slide">
    <?php
    foreach($banners as $i => $banner)
    {                    
        $tour  = getTourById($banner['iTourId']);
        $img   = GetIntroImg($banner['cImage']);
        $url   = GetUrlTourById($banner['iTourId']);
        $url_book   = GetUrlTourById($banner['iTourId'],true);
    ?>
    <div class="slide">                       
        <span class="img">
            <img src="<?echo $img?>" height="312" width="605" alt="<?php echo $banner['cName']?>" />
        </span>       
        <span class="tt"><?php echo $banner['cName']?></span> 
        <span class="days"><?php __('Duration',true)?>: <?php echo $tour['cDays']?> <?php __('days',true)?></span>             
        <span class="msg"><?php echo $banner['cDescription']?></span>
        <span class="price"><?php __('Price from',true)?>: <strong><?php echo $tour['cPriceFrom']?></strong></span>
        <span class="more">
            <a class="detail" href="<?php echoLink($url,true)?>"><?php __('Detail',true)?></a>
            <a class="book" href="<?php echoLink($url_book,true)?>"><?php __('book tour',true)?></a>
        </span>
    </div>
    <?php  
    }
    ?>
    </div>
    <div class="PrevnAct" id="Prev" onclick="slider.goFrame(-1)"></div>
    <div class="NextnAct" id="Next" onclick="slider.goFrame(1)"></div>
</div>
 <script type="text/javascript">
(slider =new TrAnami).init({id:'banner_slide',w:920,h:312,autotime: 6000,type:1});
</script>